#ifndef YESNODIALOG_H
#define YESNODIALOG_H

#include <QDialog>
#include <QTimer>

namespace Ui {
class YesNoDialog;
}

class YesNoDialog : public QDialog
{
    Q_OBJECT

public:
    explicit YesNoDialog(QWidget *parent = nullptr);
    ~YesNoDialog();

    int getClickNumber();
    int getDialogShowTime();

private slots:
    void timeoutProgress();

    void on_openButton_clicked();

    void on_closeButton_clicked();

private:
    Ui::YesNoDialog *ui;
    int clickNumber = 0;
    int dialogShowTime = 0;
    QTimer timer;
};

#endif // YESNODIALOG_H
